package com.wlyuan.open.dto.api.order;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author lijing
 * @description
 */
@Data
@RequiredArgsConstructor
public class OpenApiCarrierCreationDTO implements Serializable {
    private static final long serialVersionUID = -225917712155483291L;

    @NotBlank(message = "承运方名称不能为空")
    @Length(max = 80, message = "承运方名称最多可输入80个字符")
    @ApiModelProperty(value = "承运方名称", required = true)
    private String name;

    @NotBlank(message = "联系人不能为空")
    @Length(max = 20, message = "联系人最多可输入20个字符")
    @ApiModelProperty(value = "联系人", required = true)
    private String contactName;

    @NotBlank(message = "联系电话不能为空")
    @Length(max = 50, message = "联系电话最多可输入50个字符")
    @ApiModelProperty(value = "联系电话", required = true)
    private String contactMobile;

    @ApiModelProperty(value = "租户ID", hidden = true)
    private Long tenantId;
    @ApiModelProperty(value = "用户ID", hidden = true)
    private Long userId;
}
